<template>
  <div ref="wrapper">
    <div class="content">
      <slot></slot>
    </div>
  </div>
</template>
<script>
import BScroll from '@better-scroll/core'
export default {
  name: "Scroll",
  data() {
    return {
      scroll: {}
    }
  },
  methods: {
    __initScroll() {
      // 1.初始化BScroll对象
      this.scroll = new BScroll(this.$refs.wrapper, {
        probeType: 3,
        click: true,
      })
    }
  },
  mounted() {
    this.__initScroll()
    console.log(this.scroll.refresh());
  }
}
</script>